package com.dd.admin.business.storage.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 文件上传DTO
 */
@Data
@ApiModel("文件上传DTO")
public class FileUploadDto {
    
    @ApiModelProperty(value = "文件名（可选，不传则自动生成）")
    @NotBlank(message = "文件名不能为空")
    @Size(max = 255, message = "文件名长度不能超过255个字符")
    private String fileName;
    
    @ApiModelProperty(value = "存储目录（可选，默认根目录）")
    @Size(max = 100, message = "目录名长度不能超过100个字符")
    private String directory;
    
    @ApiModelProperty(value = "文件描述")
    @Size(max = 500, message = "文件描述长度不能超过500个字符")
    private String description;
}